package com.edu.zql;

import java.util.ArrayDeque;
import java.util.Queue;

/**
 * Created by User on 2017/10/17.
 */
public class 队列 {


    public static void main(String[] args) {

        Queue queue = new ArrayDeque();

        queue.add(1);
        queue.add(2);
        queue.add(3);
        queue.add(4);
        queue.add(5);


        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());

        System.out.println("=================");
        Color blue = Color.blue;
    }



    enum Color {
        red,blue;

        Color() {
            System.out.println("无参构造");
        }

    }
}

